<?php
require_once('../../../../../core.inc.php');
require_once('Model/SiteManage.php');
$site = new Model_Site();

echo('<ul>');
foreach($site->getList(array('enabled' => 1)) as $row){
	$site_id = $row['id'];
	if(isset($_SESSION['ADMIN_LOGIN']['SITE'][$site_id])){
		echo('<li><a href="javascript:;" id="'. $site_id .'"><span><img src="/site_'. sprintf('%04d', $site_id) .'/images/'. $row['logo_file'] .'"/></span>'. htmlspecialchars($row['site_name'], ENT_QUOTES) .'</a></li>');
	}
}
echo('</ul>');
?>